package org.osomit.sacct.connector.socket.iface;

import org.osomit.sacct.entity.Request;
import org.osomit.sacct.entity.Response;
import org.osomit.sacct.entity.SecureResponse;
import org.osomit.sacct.entity.SecureRequest;
import org.osomit.sacct.io.iface.ClientReaderWriter;

/**
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jun 29, 2009
 */
public interface SocketConnector {

    public void setServerHost(String serverHost);

    public void setServerPort(int serverPort);

    public void connect();

    public void disconnect();

    public void setClientReaderWriter(ClientReaderWriter clientReaderWriter);

    public SecureResponse submit(SecureRequest request);
}
